﻿<Application 
    x:Class="Mad.Nug.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"       
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone">

    <!--Application Resources-->
    <Application.Resources>
        <DataTemplate x:Key="plantilla">
            <StackPanel Width="460" Margin="0,0,0,10">
                <TextBlock FontSize="36" Foreground="#FFA5C536" Text="{Binding Title}" FontFamily="Segoe WP"></TextBlock>
                <TextBlock FontSize="24" TextWrapping="Wrap" Foreground="#FFE79321" Text="{Binding Date}" FontFamily="Segoe WP"></TextBlock>
                <TextBlock FontSize="24" Foreground="#FF568BAB" Text="{Binding Title}" FontFamily="Segoe WP" TextWrapping="Wrap"/>
            </StackPanel>
        </DataTemplate>

        <DataTemplate x:Key="plantillaComments">
            <StackPanel Width="460" Margin="0,0,0,10">
                <TextBlock FontSize="36" Foreground="#FFA5C536" Text="{Binding Title}" FontFamily="Segoe WP"></TextBlock>
                <TextBlock FontSize="24" TextWrapping="Wrap" Foreground="#FFE79321" Text="{Binding Date}" FontFamily="Segoe WP"></TextBlock>
                <TextBlock FontSize="24" Foreground="#FF568BAB" Text="{Binding Text}" FontFamily="Segoe WP" TextWrapping="Wrap"/>
            </StackPanel>
        </DataTemplate>
    </Application.Resources>

    <Application.ApplicationLifetimeObjects>
        <!--Required object that handles lifetime events for the application-->
        <shell:PhoneApplicationService 
            Launching="Application_Launching" Closing="Application_Closing" 
            Activated="Application_Activated" Deactivated="Application_Deactivated"/>
    </Application.ApplicationLifetimeObjects>

</Application>